package com.kitty.spring.annotationdriven.beans;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * @Description
 * @Author SHEN
 * @Date 2020/12/7
 */
public class Cat implements InitializingBean, DisposableBean {

    public Cat() {
        System.out.println("对象创建！！！");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("对象销毁！！！");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("对象初始化！！！");
    }
}
